//
//  Destination.m
//  MyTrip
//
//  Created by zhang on 15/8/24.
//  Copyright (c) 2015年 张益. All rights reserved.
//

#import "Destination.h"

@implementation Destination

- (void)dealloc
{
    [_idNum release];
    [_name release];
    [_cover release];
    [super dealloc];
}


+ (instancetype)destiationWithVistCount:(NSInteger)vistCount name:(NSString *)name cover:(NSString *)cover wishCount:(NSInteger)wishCount idNum:(id)idNum type:(NSInteger)type zoomImage:(NSString *)zoomImage{
    Destination *des = [[Destination alloc] init];
    des.visited_count = vistCount;
    des.name = name;
    des.cover = cover;
    des.wish_to_go_count = wishCount;
    des.idNum = idNum;
    des.type = type;
    des.zoomImage = zoomImage;
    return [des autorelease];
}




@end
